<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>
        <table border="5">
                <tr>            
                    <td>
                        <h:form id ="t1">
                            <h:commandButton id ="skeleton" image="#{skeletonhand.imagem(player.gold, player.click)}" 
                                             disabled ="#{skeletonhand.disponivel(player.gold, player.click)}"
                                             action="#{player.total(skeletonhand.comprar(player.gold))}" >
                                <f:actionListener binding="#{player.buyHand(skeletonhand.comprado())}" />
                                <f:ajax render='skeleton :t2:zombie ' />
                            </h:commandButton>
                        </h:form>
                        </td>
                    <td>
                        <h:form id ="t2">
                            <h:commandButton id ="zombie" image="#{zombiehand.imagem(player.gold, player.click)}" 
                                             disabled ="#{zombiehand.disponivel(player.gold, player.click)}"
                                             action="#{player.total(zombiehand.comprar(player.gold))}" >
                                <f:actionListener binding="#{player.buyHand(zombiehand.comprado())}" />
                                <f:ajax render='zombie :t3:devil' />
                            </h:commandButton>
                        </h:form>
                    </td>
                    <td>
                        <h:form id ="t3">
                            <h:commandButton id ="devil" image="#{devilhand.imagem(player.gold, player.click)}" 
                                             disabled ="#{devilhand.disponivel(player.gold, player.click)}"
                                             action="#{player.total(devilhand.comprar(player.gold))}" >
                                <f:actionListener binding="#{player.buyHand(devilhand.comprado())}" />
                                <f:ajax render='devil ' />
                            </h:commandButton>
                        </h:form>
                    </td>
                </tr>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                
            </tr>
            </table>
        
    </body>
</html>
